package com.hskn.hss.module.costdictitem.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.costdictitem.entity.CostDictItem;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-05
 */
public interface ICostDictItemService extends IService<CostDictItem> {
    AjaxResult insert(JSONObject params);

    AjaxResult update(JSONObject params);

    AjaxResult deleteByid(String id);

    CostDictItem getitemByid(String id) throws HssException;

    JSONObject getitemList(JSONObject params) throws HssException;

    List getSelectList(JSONObject params);

    Map<String, CostDictItem> getCostDictItemMap(QueryWrapper<CostDictItem> queryWrapper);
}
